/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月29日         luwei
 */

package com.coocaa.launcher.sidebar.setting.item.wallpaper;

import android.content.Context;
import android.view.View;

import com.coocaa.launcher.framework.sidebar.item.Item;
import com.coocaa.launcher.framework.sidebar.item.ItemView;
import com.coocaa.launcher.sidebar.SettingData;
import com.tianci.appstore.utils.SkyConstants;

public class InnerWallpaper extends Item {
    private SettingData mSettingData = null;

    public InnerWallpaper(Context context) {
        super(context);
    }

    @Override
    public void onItemFocusChange(View v, boolean focus) {
        super.onItemFocusChange(v, focus);
    }

    @Override
    public ItemView createItemView() {
        // TODO Auto-generated method stub
        return new InnerWallpaperItem(mContext);
    }

    @Override
    public void setData(Object object) {
        this.mSettingData = (SettingData) object;
        ((InnerWallpaperItem) mItemView).updateIcon(SkyConstants.getIconId(mSettingData.iconId));
        ((InnerWallpaperItem) mItemView).updateName(SkyConstants.getStringId(mSettingData.titleId));
    }
}
